//
//  UUidVc.m
//  CareRing
//
//  Created  on 2024/12/14.
//
    

#import "UUidVc.h"
#import "ConfigModel.h"
#import "UIButton+demoStyle.h"

@interface UUidVc ()
@property (weak, nonatomic) IBOutlet UITextField *uuidTf;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UIButton *sureBtn;

@end

@implementation UUidVc

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.cancelBtn functionStyle];
    [self.sureBtn functionStyle];
    

}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.view endEditing:YES];

}
- (IBAction)sureClick:(id)sender {
    NSUInteger uuid = [self.uuidTf.text integerValue];
    if (self.cbK) {
        self.cbK(uuid);
    }
    
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (IBAction)cancelClick:(id)sender {
    
    [self dismissViewControllerAnimated:YES completion:nil];

}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
